
<script>
	function showWinMenu(){
		$("#winMenu").toggle('3000');
		$("#winMenu").hover(
		  function() {
		    $("#winMenu").show();
		  },
		  function() {
		    $("#winMenu").hide('3000');
		  }
		);
	}

    function changeSite(siteCode){             
    	window.location.href="${_b}/admin/"+siteCode+"/index";         
    }
</script>

<div id="footer" class="bg-primary with-shadow">
	<center>&copy; 2017 河北新禾科技有限公司</center>
	<div class="btn-group dropup" style="display:none;">
		<button type="button" onclick="showWinMenu();" class="btn dropdown-toggle btn-primary" style=""> 
			<i class="icon icon-windows"></i> 
			<!--<span class="caret"></span>-->
		</button>
		<ul id="winMenu" class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
      		<li class="dropdown-header">
      			<i class="icon icon-user"></i> 
      			<@shiro.principal property="userName" />
      		</li>
      		<li class="divider"></li>
			
			<li class="dropdown-submenu">
 				<a tabindex="-1" href="#"><i class="icon icon-dashboard"></i> 更换风格</a>
				<ul class="dropdown-menu">
					<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('black');"> <span style="color:#333;">black</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('bluegrey');"> <span style="color:#607D8B;">bluegrey</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('brown');"> <span style="color:#8D6E63;">brown</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('green');"> <span style="color:#4caf50;">green</span></a>
                	</li>
              		<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('indigo');"> <span style="color:#3F51B5;">indigo</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('purple');"> <span style="color:#8666b8;">purple</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('red');"> <span style="color:#d9534f;">red</span></a>
                	</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('skyblue');"> <span style="color:#3280fc;">skyblue</span></a>
              		</li>
                	<li>
                		<a tabindex="-1"  href="javascript:_changeTheme('yellow');"> <span style="color:#d0884d;">yellow</span></a>
                	</li>
              	</ul>
            </li>
			<li class="divider"></li>
			<li>
				<a tabindex="-1" href="javascript:logOut();"><i class="icon icon-signout"></i> 退出系统</a>
			</li>
		</ul>
	</div>
	
</div>
